package com.ruoyi.swap.openapi.Kline.service;

import java.util.List;
import com.ruoyi.swap.openapi.Kline.domain.SwapOpenapiKline;
import com.ruoyi.swap.openapi.Kline.domain.VO.SwapOpenapiKlineVO;

/**
 * K线/蜡烛图Service接口
 * 
 * @author saumell
 * @date 2024-08-19
 */
public interface ISwapOpenapiKlineService 
{
    /**
     * 查询K线/蜡烛图
     * 
     * @param id K线/蜡烛图主键
     * @return K线/蜡烛图
     */
    public SwapOpenapiKlineVO selectSwapOpenapiKlineById(Integer id);

    /**
     * 查询K线/蜡烛图列表
     * 
     * @param swapOpenapiKline K线/蜡烛图
     * @return K线/蜡烛图集合
     */
    public List<SwapOpenapiKlineVO> selectSwapOpenapiKlineList(SwapOpenapiKlineVO swapOpenapiKline);

    List<SwapOpenapiKlineVO> selectSwapAllData();

    Integer queryCurryNumber(String currencyPair);

    Integer selectLatestIdByApiCurrencyPair(String apiCurrencyPair);

    int incrementFailById(Integer id, java.util.Date lastExecutionTime, String callingState, String lastFailureReason);

    int incrementSuccessById(Integer id, java.util.Date lastExecutionTime, String callingState);

    /**
     * 新增K线/蜡烛图
     * 
     * @param swapOpenapiKline K线/蜡烛图
     * @return 结果
     */
    public int insertSwapOpenapiKline(SwapOpenapiKline swapOpenapiKline);

    /**
     * 修改K线/蜡烛图
     * 
     * @param swapOpenapiKline K线/蜡烛图
     * @return 结果
     */
    public int updateSwapOpenapiKline(SwapOpenapiKline swapOpenapiKline);

    /**
     * 批量删除K线/蜡烛图
     * 
     * @param ids 需要删除的K线/蜡烛图主键集合
     * @return 结果
     */
    public int deleteSwapOpenapiKlineByIds(Integer[] ids);

    /**
     * 删除K线/蜡烛图信息
     * 
     * @param id K线/蜡烛图主键
     * @return 结果
     */
    public int deleteSwapOpenapiKlineById(Integer id);
}
